package com.sservice.service.service;

import com.sservice.urp.entity.User;

import java.util.Set;

/**
 * Created by suweiming on 2017/12/20.
 */

public interface IAuthService {
    User getByUsername(String username);

    /**
     *
     * @param phone
     * @return
     */
    User getByPhone(String phone);

    Set<String> getRoles(String username);

    Set<String> getPermissions(String username);
}
